package proxy.staticproxy;
/**
 * 代购商：收到顾客的请求，为顾客购买商品
 * @author ThinkPad
 *
 */
public class ProxyCustomer implements Customer{
	//需要持有真实顾客的引用，拿资料
	private Jhon jhon = new Jhon(); 
	public ProxyCustomer(Jhon jhon) {
		this.jhon = jhon;
	}
	public void shopping(String name) {
		System.out.println("尊敬的用户，您好，我们已经收到您的需求。");
		jhon.shopping(name);
		System.out.println("正在为您购买商品。"+name);
		System.out.println("商品"+name+",已经通过圆通快递发货，请您留意订单物流状况。");
	}

}
